package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"netease/api/internal/config"
	"netease/neteaserpc/neteaserpcclient"
)

type ServiceContext struct {
	Config     config.Config
	Neteaserpc neteaserpcclient.Neteaserpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:     c,
		Neteaserpc: neteaserpcclient.NewNeteaserpc(zrpc.MustNewClient(c.Neteaserpc)),
	}
}
